<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
		
		
    </head>

    <body>

        <span id="stripe">&nbsp;</span>

        <div class="container">
            <div id="mainmenu">
                <?php
                $this->widget('bootstrap.widgets.TbNavbar', array(
                    'fixed' => false,
                    'brand' => 'Dashboard',
                    'brandUrl' => Yii::app()->createAbsoluteUrl('/admin/post/admin'),
                    'brandOptions' => array(
                        'id' => 'brand'
                    ),
                    'fluid' => true,
                    'collapse' => true,
                    'items' => array(
                        array(
                            'class' => 'bootstrap.widgets.TbMenu',
                            'items' => array(
                                array('label' => 'Posts',
                                    'url' => array('/admin/post/admin'),
                                    'active' => Yii::app()->controller->id == 'post'),
                                array('label' => 'Categories',
                                    'url' => array('/admin/category/admin'),
                                    'active' => Yii::app()->controller->id == 'category'),
                                array('label' => 'Post Types',
                                    'url' => array('/admin/posttype/admin'),
                                    'active' => Yii::app()->controller->id == 'posttype'),
                                array('label' => 'Users',
                                    'url' => array('/admin/default/demo3'),
                                    'active' => Yii::app()->controller->action->id == 'demo3'),
                                array('label' => 'Logout',
                                    'url' => array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest,
                                    'active' => false),
                            ),
                        ),
                    ))
                );
                ?>
            </div><!-- mainmenu -->
            <div id="page">
                

                <?php echo $content; ?>

                <div class="clear"></div>

                <div class="row">
                    <div class="span12" id="footer">
                        Copyright &copy; <?php echo date('Y'); ?> by <?php echo CHtml::encode(Yii::app()->name); ?>.<br/>
                        All Rights Reserved.<br/>
                    </div><!-- footer -->
                </div>
            </div><!-- page -->
        </div><!-- page -->
    </body>
</html>
